﻿@model GNSystem.Models.UserProfile

@{
    ViewBag.Title = "View";
}

<h2>@Html.DisplayFor(model => model.UserName)</h2>
@if(Model.IsAdministrator)
{
    <span style="font-size: x-small; color: #f00">Administrator</span>
    <br /><br />
}

<fieldset>
    <legend>UserProfile</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Signature)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Signature)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.EmailAddress)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.EmailAddress)
    </div>
    @if(!String.IsNullOrEmpty(Model.FirstName))
    {
        <div class="display-label">
             @Html.DisplayNameFor(model => model.FirstName)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.FirstName)
        </div>
    }
    @if(!String.IsNullOrEmpty(Model.LastName))
    {
        <div class="display-label">
             @Html.DisplayNameFor(model => model.LastName)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.LastName)
        </div>
    }
    <div class="display-label">
         @Html.DisplayNameFor(model => model.ModerationID)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ModerationID)
    </div>
</fieldset>
<p>
    <!-- 
    @@Html.ActionLink("Edit", "Edit", new { id=Model.UserId }) |
        -->
    @Html.ActionLink("Back to List", "Index")
</p>
